
<%@page import="classes.Stock"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.sql.ResultSet"%>
<%@page contentType="text/html" pageEncoding="EUC-KR"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
        <link rel="stylesheet" href="css/shadowbody.css" type="text/css" />
        <title>Remove Stock</title>
    </head>
    <body>
        <div class="drop-shadow raised" >
        <form method="post" action="removestock.html">
            <fieldset>
                <legend>Check to remove stocks</legend>
        <%
            Stock.getConnection();
            ArrayList<String> rs=Stock.getResults(1,2);
            for(int i=0;i<rs.size();i++)
            {
                out.print("<input type=\"checkbox\" name=\"stock\" value=\"");
                out.println(i+"\"/>"+rs.get(i)+"<br/>");
            }
        %>
        <input type="submit" Value="Remove"/>
            <input type="button" value="  Close  " onclick="window.close();"/>
            </fieldset>
        </form>
        </div>
    </body>
</html>
